// 控制器
import indexController from '@src/controllers/index'
import adminController from '@src/controllers/admin'
import advController from '@src/controllers/adv'
import loginController from '@src/controllers/login'

export default [
  {
    path: '/index',
    controller: indexController,
  },
  {
    path: '/index/admin',
    controller: adminController,
    isSidebar: true,
    title: '管理员列表页',
  },
  {
    path: '/index/adv',
    controller: advController,
    isSidebar: true,
    title: '广告管理列表',
  },
  {
    path: '/login',
    controller: loginController,
  },
  {
    path: '*',
    controller: (req, res) => {
      res.redirect('/index/admin')
    },
  },
]